﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Text;

namespace WebView2.Model
{
    /// <summary>
    /// 收藏夹栏
    /// </summary>
    public class Favorite
    {
        //主键自增
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string URL { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新的时间
        /// </summary>
        [Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
        public DateTime UpdateTime { get; set; }
    }
}
